<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>襄产汇</title>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/mobile/index.css}" rel="stylesheet"/>
    <link th:href="@{/css/mobile/base.css}" rel="stylesheet"/>
    <script th:src="@{/js/jquery.min.js}" type="text/javascript"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/ajax/libs/layui/layui.js}"></script>
</head>
<body>
<div class="container">
    <div class="my_ban row">
        <img class="ban_img" th:src="@{/img/mobile/qyBan.jpg}"/>
        <div class="ban_box">
            <div class="ban_tit">管理中心</div>
            <div class="my_info" id="info">
                <img th:src="(${user.avatar} == '') ? @{/img/yonghu.png} : @{/profile/avatar/} + ${user.avatar}"/>
                <span class="my_name" th:text="(${user.userName} == '') ? 暂无: ${user.userName} "></div>
        </div>
    </div>

    <div class="menu row">
        <ul id="accordion" aria-multiselectable="true">
       	   <!--  <li th:each="menu : ${menus}" id="${menu.menuId}">
       	    	<span data-toggle="collapse" data-parent="#accordion" class="collapsed" >
	               	 <i class="fa fa-bars">
	                     <c th:utext="${menu.menuName}"></c>
	                 </i>
	                 <i class="glyphicon glyphicon-menu-down down"></i>
	                 <i class="glyphicon glyphicon-menu-up up"></i>
                 </span>
                 <ul th:each="cmenu : ${menu.children}" class="collapse two">
                    <li id="m${cmenu.menuName}"+ class="panel">
                        <a href="/admin/mobile/enterpriseIndex/area">首页（区）</a>
                    </li>
                 </ul>
           </li> -->
            
            <li class="user panel">
                <span data-toggle="collapse" data-parent="#accordion" class="collapsed" href="#000">
                    <i class="fa fa-user-circle-o">
                        <c>我的</c>
                    </i>
                    <i class="glyphicon glyphicon-menu-down down"></i>
                    <i class="glyphicon glyphicon-menu-up up"></i>
                </span>
                <ul id="000" class="collapse two">
                    <li class="user">
                        <a th:href="@{'/system/user/profile/resetPwd/'+${user.userId}}">修改密码</a>
                    </li>
                    <li class="user">
                        <a href="/admin/login">退出登录</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
</body>
<script type="application/javascript">
	var ctx = "/";
	var molfix = ctx + "mobile/user";
	// 初始化菜单显示
	$(function () {
        //init();
    })
	
    /* function init() {
        $.ajax({
            url: molfix + "/myMenu",
            type: 'POST',
            async: false,
            success: function (r) {
                if (r.code == 200) {
                	var list = r.data;
                	for(var i=0;i<list.length;i++){
                		$("#m"+list[i]).css("display","block");
                	}
                } else {
                    alert("获取数据失败");
                }
            }
        });
    } */
</script>
</html>